public class Example4_8 {
   public static void main(String args[]) {
       Circle circle = new Circle();            //¡¾´úÂë1¡¿            
       circle.setRadius(10);                    //¡¾´úÂë2¡¿
       Circular circular = new Circular();      //¡¾´úÂë3¡¿
       System.out.println("circleµÄÒýÓÃ:"+circle);
       System.out.println("Ô²×¶µÄbottomµÄÒýÓÃ:"+circular.bottom); 
       circular.setHeight(5);             
       circular.setBottom(circle);              //¡¾´úÂë4¡¿
       System.out.println("circleµÄÒýÓÃ:"+circle);
       System.out.println("Ô²×¶µÄbottomµÄÒýÓÃ:"+circular.bottom); 
       System.out.println("Ô²×¶µÄÌå»ý:"+circular.getVolme());
       System.out.println("ÐÞ¸ÄcircleµÄ°ë¾¶£¬bottomµÄ°ë¾¶Í¬Ñù±ä»¯");
       circle.setRadius(20);                      //¡¾´úÂë5¡¿
       System.out.println("bottomµÄ°ë¾¶:"+circular.getBottomRadius());
       System.out.println("ÖØÐÂ´´½¨circle,cirlceµÄÒýÓÃ½«·¢Éú±ä»¯");
       circle = new Circle(); //ÖØÐÂ´´½¨circle ¡¾´úÂë6¡¿
       System.out.println("circleµÄÒýÓÃ:"+circle); 
       System.out.println("µ«ÊÇ²»Ó°ÏìcircularµÄbottomµÄÒýÓÃ");
       System.out.println("Ô²×¶µÄbottomµÄÒýÓÃ:"+circular.bottom); 
   }
}

